//
//  SSHTunnelConnection.m
//  tunneltool
//
//  Created by Andreas Hindborg on 17/05/11.
//  Copyright 2011 Andreas Hindborg. All rights reserved.
//

#import "SSHTunnelConnection.h"
#include <libssh2.h>

@implementation SSHTunnelConnection

@synthesize clientSocket;
@synthesize channel;
@synthesize clientHost;
@synthesize clientPort;
@synthesize dead;

- (void) dealloc
{
    NSLog(@"Cleaning connection from %@:%u (descriptor %d)", clientHost, clientPort, clientSocket);
    close(clientSocket);
    libssh2_channel_close(channel);
    [super dealloc];
}

@end
